using DynamicLed.Communication;
using DynamicLed.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            var cmd = new LedStringUpdate
            {
                StringEncoding = EncodingType.GB2312,
                StringDisplayWay = LedStringDisplayWay.Promptly,
                Color = LedColor.R,
                Text = "Led显示5.3"
            };

            var bytes = cmd.ToBytes(1);
            Console.WriteLine("发送指令{0}", BitConverter.ToString(bytes));

            Console.ReadLine();
        }
    }
}